<template>
  <div class='container'>
    <div class="header" v-html="content.title"></div>
    <div class="box">
      <span v-html="content.createTime"></span>
      <span v-html="content.username"></span>
      <span>
        <i class="el-icon-view"></i>
        <span v-html="content.visits"></span>
      </span>
    </div>

    <div v-html="content.articleBody"></div>
  </div>
</template>

<script>
export default {
  name: 'ArticlesPreview',
  components: {

  },
  props: {
    content: {
      type: [String, Object, Number],
      required: true
    }
  },
  data () {
    return {

    }
  },
  mounted () {

  },
  created () {

  },
  methods: {

  }
}
</script>

<style scoped lang='less'>
  .container {
    .header {
      margin: 10px 0;
      margin-top: 25px;
      color: #616367;
      font-size: 20px;
      font-weight: 700;
    }
    .box {
      margin-left: 10px;
      span {
       margin: 0 5px;
      }
    }

  }
</style>
